-- GENERATED SPELL FOR [Infected Mossflayer] --


function spell0_12261(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12261', 2300, 1)
end

function spell1_12261(pUnit, Event) --@Wither Touch,n/a--
pUnit:FullCastSpellOnTarget(4974,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12261', 575, 1)
end

function Sorts_12261(pUnit, Event)
local choix_sorts_12261 = math.random(0, 1)
if choix_sorts_12261 == 0 then
pUnit:RegisterEvent('spell0_12261', 1, 1)
end
if choix_sorts_12261 == 1 then
pUnit:RegisterEvent('spell1_12261', 1, 1)
end
end

function mob12261_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12261', math.random(1500, 3000), 1)
end

function mob12261_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12261_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12261_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12261, 1, 'mob12261_Action')
RegisterUnitEvent(12261, 2, 'mob12261_Leave')
RegisterUnitEvent(12261, 3, 'mob12261_Kill')
RegisterUnitEvent(12261, 4, 'mob12261_Die')
